package com.yu.crm.domain.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.TableLogic;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author neo
 * @since 2020-07-21
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="CrmCar对象", description="")
public class CrmCar implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "车辆id")
    @TableId(value = "id", type = IdType.ID_WORKER)
    private Long id;

    @ApiModelProperty(value = "人员类型:1.内部 2.访客 3.其他")
    @TableField("usertype")
    private Integer usertype;

    @ApiModelProperty(value = "所属人姓名")
    @TableField("username")
    private String username;

    @ApiModelProperty(value = "联系电话")
    @TableField("phone")
    private String phone;

    @ApiModelProperty(value = "公司")
    @TableField("conpany")
    private String conpany;

    @ApiModelProperty(value = "部门")
    @TableField("department")
    private String department;

    @ApiModelProperty(value = "内部人员id")
    @TableField("userid")
    private Long userid;

    @ApiModelProperty(value = "车辆类型：1.轿车 2.客车 3. 其他")
    @TableField("car_type")
    private Integer carType;

    @ApiModelProperty(value = "车牌号")
    @TableField("car_number")
    private String carNumber;

    @ApiModelProperty(value = "状态：0.禁行，1.通行")
    @TableField("status")
    private Integer status;

    @ApiModelProperty(value = "创建时间")
    @TableField("gmt_create")
    private LocalDateTime gmtCreate;

    @ApiModelProperty(value = "修改时间")
    @TableField("gmt_modified")
    private LocalDateTime gmtModified;

    @ApiModelProperty(value = "是否删除")
    @TableField("is_deleted")
    @TableLogic
    private Integer isDeleted;


}
